package com.example.document

import com.witmed.lib_base.BaseEntity
import com.witmed.lib_base.BaseRepository
import com.witmed.lib_http.HttpType
import com.witmed.lib_http.NetWorkFactory
import kotlinx.coroutines.flow.Flow

class DocmentRepo:BaseRepository() {
    fun selDocments(map:Map<String,Any>):Flow<BaseEntity>{
        return NetWorkFactory.factory(HttpType.NONE)
            .create(ApiService::class.java)
            .selDocuments(createBody(map))
    }
}